package com.designpatterns.factory.factory2.pizza;

import java.util.ArrayList;

public abstract class Pizza {
    public String name;
    public String dough;
    public String sauce;
    public ArrayList<Object> toppings = new ArrayList<Object>();

    public void prepare() {
        System.out.println("Prepare " + name);
        System.out.println("Tossing dough...");
        System.out.println("Adding sacuce...");
        System.out.println("Adding toppings: ");
        for (int i = 0; i < toppings.size(); i++ ) {
            System.out.println("  " + toppings.get(i));
        }
    }

    public void bake() {
        System.out.println("Bake for minutes at 350");
    }

    public void cut() {
        System.out.println("Cutting the pizza into diagonal slices");
    }

    public void box() {
        System.out.println("Place pizza in official PizzaStroe box");
    }

    public String getName() {
        return name;
    }
}
